<?php if(!defined('IN_FANWE')) exit('Access Denied'); if($cate_list) { if(is_array($cate_list)) { foreach($cate_list as $citem) { ?><div class="wrapper2 mt20 index_cate">
<h2><?php echo $citem['cate']['short_name'];?></h2>
<div class="ic_tags"><?php $tag_index =1; if(is_array($citem['cate']['index_tags'])) { foreach($citem['cate']['index_tags'] as $tag) { ?><a target="_blank" href="<?php echo FU('book/cate',array("sort"=>"hot1","tag"=>$tag['url_tag'],"cate"=>$citem['cate']['cate_code'])); ?>"><?php echo $tag['tag_name'];?></a>
<?php if($tag_index > 12) { ?><?php break; } ?><?php $tag_index++; } } ?>
</div>
<a class="more" href="<?php echo FU('book/cate',array("cate"=>$citem['cate']['cate_code'])); ?>">更多精彩>></a>
<ul><?php $cate_idx = 1; if(is_array($citem['share_list'])) { foreach($citem['share_list'] as $share) { if($cate_idx > 6) { ?><?php break; } ?>
<li>
<a class="img" href="<?php echo $share['url'];?>" >
<img class="lazyload" src="./tpl/images/lazyload.gif" original="<?php echo getImgName($share['img'],200,999,0); ?>" scaleType="3" scaleWidth="150" scaleHeight="170" />
<span><?php echo $share['name'];?></span>
</a>
</li><?php $cate_idx++; } } ?>
</ul>
</div>
<?php } } } ?>